<p style="text-align:right">
	Hello <strong><?php echo $user_data['User']['fname'] ?></strong>. <?php echo $html->link('Logout' , array('controller' => 'users', 'action' => 'logout')) ?>
</p>
<h2>Create New Project</h2>
<?php echo $form->create(null, array('url' => array('controller' => 'projects', 'action' => 'generateSpec'))); ?>
	<h3>Project Info</h3>
	<p>
		<label for="ProjectTitle">Title</label>
		<input type="text" name="data[Project][title]" value="" id="ProjectTitle" size="30" maxlength="255" />
	</p>
	<p>
		<label for="ProjectDescription">Description</label>
		<textarea name="data[Project][description]" id="ProjectDescription" cols="30"></textarea>
	</p>
	<script type="text/javascript" charset="utf-8">
		$(function() {
			$('div.kernels').hide();
			
			$('#expandAllKernels').click(function() {
				$('div.kernels').show('blind');
			});
			
			$('#processorKernelsHeading').click(function() {
				$('#processorKernels').toggle('blind');
			});
			$('#memoryKernelsHeading').click(function() {
				$('#memoryKernels').toggle('blind');
			});
			$('#diskKernelsHeading').click(function() {
				$('#diskKernels').toggle('blind');
			});
			$('#systemKernelsHeading').click(function() {
				$('#systemKernels').toggle('blind');
			});
			$('#userKernelsHeading').click(function() {
				$('#userKernels').toggle('blind');
			});
		});

	</script>
	<h3>Project Parameters</h3>
	<br/>
	<p>
		Enter the number of LOC
	</p>
	<br/>
	<label>Minimum LOC: </label>
	<input type="text" name="data[Project][LOCMIN]" value="" id="minLOC" size="5"/>
	<br/><br/>
	<label>Maximum LOC: </label>
	<input type="text" name="data[Project][LOCMAX]" value="" id="maxLOC" size="5"/>
	<br/><br/>
	<label>LOC Step: </label>
	<input type="text" name="data[Project][LOCSTEP]" value="" id="LOCSTEP" size="5"/>
	<br/>
	<br/>
	<p>
		Choose program structure
	</p>
	<br/>
	<select name="data[Project][PROGTYPE]">
		<option>Choose one..</option>
		<option value="0">Kernel Sequence Model</option>
		<option value="1">Kernel Sequence Function Model</option>
		<option value="2">Kernel Sequence Function Minimum Size Model</option>
		<option value="3">Loop Select Minimum Size Model</option>
		<option value="4">Adjustable Size Loop Select Model</option>
	</select>
	<br/>
	<br/>
	<label>Run Time</label>
	<input type="text" name="data[Project][RUNTIME]" value="" id="RUNTIME" size="5" style="text-align:right"/> sec
	<br/>
	
	<br/>
	<br/>
	<br/>
	<h4>Choose kernels to include in the generated code</h4>
	<br/>
	<div id="processorKernelsHeading" class="kernelHeading">
		Processor Performance Kernels
	</div>
	<div id="processorKernels" class="kernels">
		<ul>
			<li class="listHeading">
				Enter weights for the kernels
			</li>
			<li>
				<div class="kernelLabel">
					113. Strings
				</div>
				<input type="text" name="data[Project][C11301]" value="0" id="11301" size="4"/>
			</li>
			<li>
				<div class="kernelLabel">
					117. Recursive Non-Numerical Problems
				</div>
				<input type="text" name="data[Project][C11701]" value="0" id="" size="4"/>
			</li>
			<li>
				<div class="kernelLabel">
					121. Recursive Non-Numerical Problems
				</div>
				<input type="text" name="data[Project][C12101]" value="0" id="" size="4"/>
			</li>
		</ul>
	</div>
	
	<div id="memoryKernelsHeading" class="kernelHeading">
		Memory Access (Paging &amp; Caching)
	</div>
	<div id="memoryKernels" class="kernels">
		<ul>
			<li class="listHeading">
				Enter weights for the kernels
			</li>
			<li>
				<div class="kernelLabel">
					Static Memory Access: Uniform distribution, multiple localities
				</div>
				<input type="text" name="data[Project][C21101]" value="0" id="" size="4"/>
			</li>
			<li>
				<div class="kernelLabel">
					Dynamic Memory Access: Uniform distribution, multiple localities
				</div>
				<input type="text" name="data[Project][C22101]" value="0" id="" size="4"/>
			</li>
		</ul>
	</div>
	
	<div id="diskKernelsHeading" class="kernelHeading">
		Disk &amp; Peripheral Access
	</div>
	<div id="diskKernels" class="kernels">
		<ul>
			<li class="listHeading">
				Enter weights for the kernels
			</li>
			<li>
				<div class="kernelLabel">
					Disk Access
				</div>
				<input type="text" name="data[Project][C31301]" value="0" id="" size="4"/>
			</li>
		</ul>
	</div>
	
	<div id="systemKernelsHeading" class="kernelHeading">
		System
	</div>
	<div id="systemKernels" class="kernels">
		No Kernels, yet
	</div>
	
	<div id="userKernelsHeading" class="kernelHeading">
		User
	</div>
	<div id="userKernels" class="kernels">
		No Kernels, yet
	</div>

<?php echo $form->end('Create'); ?>